package com.alan.gulimall.product.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.alan.common.utils.PageUtils;
import com.alan.gulimall.product.entity.CategoryEntity;

import java.util.List;
import java.util.Map;

/**
 * 商品三级分类
 *
 * @author alan
 * @email alany@gmail.com
 * @date 2020-07-21 09:24:45
 */
public interface CategoryService extends IService<CategoryEntity> {

    PageUtils queryPage(Map<String, Object> params);

    /**
     * 查询所有分类并以树形结构返回
     * @return
     */
    List<CategoryEntity> listWithTree();

    /**
     * 批量删除分类
     * @param asList
     */
    void removeMenuByIds(List<Long> asList);
}

